package com.bootlever.framework.core.properties.basic;

import com.bootlever.framework.common.utils.StringUtils;

public class MailSender {

    private String smtpHost;//smtp服务器地址
    private String smtpPort;//smtp服务器端口
    private String fromAddress;//发送邮箱号
    private String password;//密码
    private String nickName;//昵称

    public String getSmtpHost() {
        return smtpHost;
    }

    public void setSmtpHost(String smtpHost) {
        this.smtpHost = smtpHost;
    }

    public String getSmtpPort() {
        return smtpPort;
    }

    public void setSmtpPort(String smtpPort) {
        this.smtpPort = smtpPort;
    }

    public String getFromAddress() {
        return fromAddress;
    }

    public void setFromAddress(String fromAddress) {
        this.fromAddress = fromAddress;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public boolean isEnable(){
        if (StringUtils.isBlank(smtpHost)||StringUtils.isBlank(smtpPort)||StringUtils.isBlank(fromAddress)
                ||StringUtils.isBlank(password)){
            return false;
        }
        return true;
    }
}
